package com.example.szh.mvp.view.video;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.example.szh.R;
import com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer;

public class VideoActivity extends AppCompatActivity {

    private StandardGSYVideoPlayer gsy;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_video);
        initView();
        gsy.setUp("http://ivi.bupt.edu.cn/hls/cctv1hd.m3u8",true,"");
        gsy.startPlayLogic();
    }

    private void initView() {
        gsy = (StandardGSYVideoPlayer) findViewById(R.id.gsy);
    }
}